/*************************************
ScreenStart.h
Created By VietRise on 16/6/2014

*************************************/

#ifndef __SCREENSTART_H__
#define __SCREENSTART_H__

#include "cocos2d.h"
#include "SimpleAudioEngine.h"
#include "Sprites\Button.h"



USING_NS_CC;
using namespace CocosDenshion;

class ScreenStart : public cocos2d::CCLayer
{
private:
	CCSpriteBatchNode* _gameBatchNode;
	CCSize _screenSize;

	CCSprite* _btnStart;
	Button* _btnHelp;
	Button* _btnLike;
	Button* _btnInfo;
	Button* _btnMusicNormal;
	Button* _btnMusicPress;

	CCArray* _buttons;

	CCAction* _animationStart;

	bool _startPress;

	void createScreen();
	void createActions();
public:
	~ScreenStart();
	ScreenStart();

	static CCScene* scene();

	virtual void ccTouchesBegan(CCSet *pTouches, CCEvent *pEvent);
	virtual void ccTouchesMoved(CCSet *pTouches, CCEvent *pEvent);
	virtual void ccTouchesEnded(CCSet *pTouches, CCEvent *pEvent);

	void setVisiableBtnMusicNormal();
	void setVisiableBtnMusicPress();
};

#endif // __SCREENSTART_H__